#!/bin/sh
colors=(30 31 32 33 34 35 36 37)
length=${#colors[*]}
for ((i=0; i<$length; i++))
do
  echo -e "\033[${colors[i]}m This is color text "
done
echo -e "\033[0m"

exit 0


thuoc tinh van ban (in dam: bold, nhap nhay: blink, dao mau)
gia tri thuoc tinh blink: 5, dao mau: 7, 25 tat nhap nhay

echo -e "\033[33;1m this is bold and read text \033[0m"

mau nen

backgrounds=(40 41 42 43 44 45 46 47)
length=${#backgrounds[*]}
for ((i=0; i<$length; i++))
do
  echo -e "\033[31;${backgrounds[i]}m This is color text "
done
echo -e "\033[0m"

exit 0